Skip to main content

2. Extend the base loader

Extend from the base loader so that you inherit the sensible defaults. You can overwrite these at any point.

/src/loaders/userRouteLoader.tsx
import { baseLoader } from "./baseLoader";

export const userRouteLoader = baseLoader.extend({});

You can pass any argument from createLoader into Loader.extend.